2. Nslookup tool

Nslookup is a program to query Internet domain name servers (DNS).

Type nslookup in the terminal.

  1. To find name servers that are hosting the target

set type=ns
website(xyz[.]com)

a8a9b1758ca0c70145e94b1a6fcb58f0.png

dba112953966dc9c9af3a4f8bd8d437d.png

  1. To see if there is a SPF record missing or misconfigured so that we can spoof someone at the institution

set type=txt

42c38b8c1a8cd88b8d06f91c75f578e4.png

  1. To see mail servers of the target

set type=mx

5225bbbef39c1ed302a05222b68101ec.png


Notes:

  1. Name Servers
    A name server translates domain names into IP addresses. This makes it possible for a user to access a website by typing in the domain name instead of the website's actual IP address. For example, when you type in "www.microsoft[.]com," the request gets sent to Microsoft's name server which returns the IP address of the Microsoft website.

083bddc1e9acfb5c8b0c7dc279510c95.png

  1. SPF record
    A Sender Policy Framework (SPF) record is a type of Domain Name System (DNS) record that can help to prevent email address forgery.
  1. Mail Server
    A mail server (or email server) is a computer system that sends and receives email.
    Mail servers send and receive email using standard email protocols. For example, the SMTP protocol sends messages and handles outgoing mail requests. The IMAP and POP3 protocols receive messages and are used to process incoming mail.